﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("Users")]
    public partial class User
    {
        public User()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int UserID { get; set; }

        /// <summary>
        /// Desc:用户名
        /// Default:
        /// Nullable:False
        /// </summary>      
        /// 
        [SugarColumn(IsOnlyIgnoreUpdate = true)]
        public string UserName { get; set; }

        /// <summary>
        /// Desc:密码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string UserPwd { get; set; }

        /// <summary>
        /// Desc:用户角色，1-普通用户，2-管理员
        /// Default:1
        /// Nullable:True
        /// </summary>       
        /// 
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public int Role { get; set; }

        /// <summary>
        /// Desc:
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>     
        [SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>    
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime? UpdatedAt { get; set; }

        [SugarColumn(IsIgnore = true)]
        public Models.ResumeInfo ResumeInfo { get; set; }

        [SugarColumn(IsIgnore = true)]
        public Models.UserInfo UserInfo { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Models.Artworks> Artworks { get; set; }

    }
}
